# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-podman
pkgver=4.7.0
pkgrel=1
pkgdesc="Python bindings for Podman's RESTful API"
url="https://github.com/containers/podman-py"
license="Apache-2.0"
arch="noarch"
depends="py3-requests py3-urllib3 py3-xdg"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-requests-mock py3-fixtures"
subpackages="$pkgname-pyc"
source="https://github.com/containers/podman-py/archive/v$pkgver/py3-podman-$pkgver.tar.gz"
builddir="$srcdir/podman-py-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest podman/tests/unit
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/podman-$pkgver-py3-none-any.whl
}

sha512sums="
c570ce3e7e11cd2f78a80ccfe43ef1fbf3fd7d96f2d93b92cc50284da15361c9d786f82602d696400f92e5a72bba8f85e9d9184182df1d09c9fee2523169e6cc  py3-podman-4.7.0.tar.gz
"
